package com.read;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * @ClassName BookApplication
 * @Description TODO
 * @Author young
 * @Date 2022-11-05 11:36
 * @Version 1.0
 **/
@SpringBootApplication
//开启客户端连接, 向nacos注册中心注册
@EnableDiscoveryClient
//开启降级
@EnableHystrix
public class BookApplication {
    public static void main(String[] args) {
        SpringApplication.run(BookApplication.class);
    }

}
